﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NakedObjects;
using System.ComponentModel;
using RTC.Modelo.Behavior;
using RTC.Modelo.UFC;
using FUFDomain.SystemStatus;
using FUFDomain.Undo;

namespace RTC.Modelo.Entidades
{
    public abstract class Entidad
    {

        #region Injected Services

        public UndoManager UndoManager { set; protected get; }

        public BehaviorModel BehaviorModel { set; protected get; }

        public IDomainObjectContainer Container { protected get; set; }

        #endregion


        public virtual void Persisting()
        {
            SetModifiedDate();
        }

        public virtual void Updating()
        {
            SetModifiedDate();
        }

        protected abstract void SetModifiedDate();


    }
}
